import request from '@/utils/request'

// 查询基础参数列表
export function listBasicParams(query) {
  return request({
    url: '/params/basicParams/list',
    method: 'get',
    params: query
  })
}

export function getCurrentBasicParams(query) {
  return request({
    url: '/params/basicParams/getCurrentBasicParams',
    method: 'get',
    params: query
  })
}

// 查询基础参数详细
export function getBasicParams(ID) {
  return request({
    url: '/params/basicParams/' + ID,
    method: 'get'
  })
}

// 新增基础参数
export function addBasicParams(data) {
  return request({
    url: '/params/basicParams',
    method: 'post',
    data: data
  })
}

// 修改基础参数
export function updateBasicParams(data) {
  return request({
    url: '/params/basicParams',
    method: 'put',
    data: data
  })
}

// 删除基础参数
export function delBasicParams(ID) {
  return request({
    url: '/params/basicParams/' + ID,
    method: 'delete'
  })
}
